(0) Obligation:
Runtime Complexity TRS:
The TRS R consists of the following rules:
f(true, x, y) → f(and(gt(x, y), gt(y, s(s(0)))), plus(s(0), x), double(y))
gt(0, v) → false
gt(s(u), 0) → true
gt(s(u), s(v)) → gt(u, v)
and(x, true) → x
and(x, false) → false
plus(n, 0) → n
plus(n, s(m)) → s(plus(n, m))
double(0) → 0
double(s(x)) → s(s(double(x)))
Rewrite Strategy: FULL
(1) DecreasingLoopProof (EQUIVALENT transformation)
The following loop(s) give(s) rise to the lower bound Ω(n1):
The rewrite sequence
gt(s(u), s(v)) →+ gt(u, v)
gives rise to a decreasing loop by considering the right hand sides subterm at position [].
The pumping substitution is [u / s(u), v / s(v)].
The result substitution is [ ].
(2) BOUNDS(n^1, INF)